package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Configuration {

    private DataSource dataSource;

    Map<String,MappedStatement> mappedStatementMap = new HashMap<>();

    private List<String> nodeTypeList = Arrays.asList("select|insert|update|delete".split("\\|"));

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }

    public List<String> getNodeTypeList() {
        return nodeTypeList;
    }

    public void setNodeTypeList(List<String> nodeTypeList) {
        this.nodeTypeList = nodeTypeList;
    }
}
